const gulp = require('gulp');
const plugins = require('gulp-load-plugins')();
var minimist = require('minimist');
const knownOptions = {
  string: 'env',
  default: {
    env: 'dev',
    answersData: {},
    config: require('../config.json'),
    pkg: require('../package.json')
  }
};
const options = minimist(process.argv.slice(2), knownOptions);
module.exports = function getTask(task) {
  return require('./tasks/' + task)(gulp, plugins, options);
};